home *** CD-ROM | disk | FTP | other *** search
- /*
- File: MailableDocWindow.cp
-
- Contains: A wacky experiment with AOCE
-
- Written by: Steve & Dave Falkenburg
-
- Copyright: Copyright © 1993-1999 by Apple Computer, Inc., All Rights Reserved.
-
- You may incorporate this Apple sample source code into your program(s) without
- restriction. This Apple sample source code has been provided "AS IS" and the
- responsibility for its operation is yours. You are not permitted to redistribute
- this Apple sample source code as "Apple sample source code" after having made
- changes. If you're going to re-distribute the source, we require that you make
- it clear in the source that the code was descended from Apple sample source
- code, but that you've made changes.
-
- Change History (most recent first):
- 8/19/1999 Karl Groethe Updated for Metrowerks Codewarror Pro 2.1
- 9/27/94 DRF Changes for Dave Mark: AppLib.h is now Sprocket.h.
- 9/9/94 DRF Conditionalized AOCE support.
- 8/26/94 DRF Added GetPerfectWindowSize, with call to
- AdjustPerfectWindowSizeForMailer.
-
- */
-
- #include "Sprocket.h"
- #include "MailableDocWindow.h"
-
-
- #if qAOCEAware
-
-
-
- TMailableDocWindow::TMailableDocWindow()
- {
- this->CreateWindow(); // must be a normal window
- }
-
-
- WindowPtr
- TMailableDocWindow::MakeNewWindow(WindowPtr behindWindow)
- {
- WindowPtr aWindow = GetNewColorOrBlackAndWhiteWindow(1027,nil,behindWindow);
-
- return aWindow;
- }
-
-
- void
- TMailableDocWindow::GetPerfectWindowSize(Rect * perfectSize)
- {
- TWindow::GetPerfectWindowSize(perfectSize);
- AdjustPerfectWindowSizeForMailer(perfectSize);
- }
-
-
- void
- TMailableDocWindow::DrawContents(void)
- {
- // drawing will be clipped to the content so we can go ahead and use the portRect
- FillRect(&fWindow->portRect,&qd.ltGray);
- }
-
- #endif